USB doesn't really provide any means for doing this. All the addressing is handled internally by the controller. Which is why you could use a front USB port to install and configure a printer, then move it to a back port and not have to change a thing to get it working again. Unfortunately, if something goes wrong, this means the fun trial and error process to figure out which port it is.
XP pro SP 2. OK team. I have replaced the defective USB port and recabled the system this afternoon. Using the manual that came with the mobo (DFI lanparty)I made a careful list of what which peripheral was connected to each of the numbered ports (there are 10 available). Installing a couple of printers I discover that the port address does not match the list I made and the system appears to have made a virtual USB port (oh joy).
So, my question is how can I map the USB ports on the system to detect what number they are and what they think is attached to them?
It was simpler with LPT and COM ports.
Any help appreciated.