[win32] Some fixes for usb scan

Added error checks.
Used other WINAPI function for PID and VID extraction.