title: Get USB device address through python
body: <p>For test purposes, I want to connect a USB device and want to check what is the speed (HS/FS/LS).
  I am able to access to Device Descriptor, Endpoint descriptor, interface descriptor but I would like to know the device address which has been allocated by the OS (windows 7)</p>
  
  <p>My code so far :</p>
  
  <pre><code>import usb
  busses = usb.busses()
  for bus in busses:
      for dev in bus.devices:
          if dev.idVendor == vendor_id and dev.idProduct == product_id:
              print ("Test vehicle %s device FOUND!" %protocol)
              print ("iManufacturer   : %s" %usb.util.get_string(dev.dev, 256, 1))
              print ("iProduct            : %s" %usb.util.get_string(dev.dev, 256, 2))
              print ("iSerialNumber   : %s" %usb.util.get_string(dev.dev, 256, 3))
  
              return dev
  
  print ("Test vehicle %s device NOT FOUND!" %protocol)
  </code></pre>
  
  <p>Returns :</p>
  
  <pre><code>C:\Python27\Lib\site-packages&gt;python example.py
  
  Test vehicle HS device FOUND!
  iManufacturer   : Kingston
  iProduct        : DataTraveler 2.0
  iSerialNumber   : 5B720A82364A
  </code></pre>
  
  <p>In the very useful USBview software, there is a section :</p>
  
  <pre><code>ConnectionStatus: DeviceConnected
  Current Config Value: 0x01
  Device Bus Speed:     High
  Device Address:       0x09
  Open Pipes:              2
  </code></pre>
  
  <p>How do I get these informations ? is it a query to the USB device using pyUSB ? or is it a query to sys ?</p>
  
  <p>Thanks for any help.</p>