Linux: lsusb -tv
Windows: There's an example in the WDK here: https://github.com/Microsoft/Windows-driver-samples/tree/mai...