Humm, I'm just thinking how would I calculate bandwidth in any language. Bandwidth is basically how fast you can send and recieve data. Knowing that, one could write a program to acquire a file of known size from a remote location. Keep track of how long it took. Then divide the size of your file by the time it took and
you should have a primitive bandwidth measurement. I took a look at some of the socket and url objects, but they don't seem to have any bandwidth methods.
Sorry.