Theres no reliable way to get this information short of testing the connection. Obviously you'll get a different answer every time so you'd have to get an average some how. In short, its tricky and if its just for a progress bar don't bother (I don't see any way you could get it to work in this scenario anyway)