If you are on windows you could use WMI to query the Win32_USBControllerDevice and Win32_PnPEntity classes.
Here is a howto in WSH, it'd take a little translating to perl using the WMI functionality in the Win32::OLE package.
How Can I Determine Which USB Devices are Connected to a Computer?In reply to Re: Checking for a USB Dongle
by Firefly258
in thread Checking for a USB Dongle
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |