Are you using an external BER tester you need to communicate with or do you want to do this in software?
I have done this in software before. Depending on the driver/OS you are using it may be easy to find the necessary information. I did this on VxWorks and that OS keeps track of things like total packets sent, packets with bad CRCs, discarded packets, and so on.
Also, most Intel ethernet chips have internal hardware counters that keep track of packets sent and other statistical data.
Can you describe the hardware and software/OS being used?