Also, in Windows, USB hub device properties can tell you how much power are assigning to the usb port (from Device manager). But the value is very aproximated (but you can get a quick idea of the maximum consumption, I think is 40 mA or 80 mA for my uno with a couple of leds attached)