Is there a way of finding out how many bytes are being sent/received on the current default internet connection...?

In Code (API/Registry...whatever) ?