is there a way or a method to query the Volume ID of a previously attached usb pen drive? To answer the question which USB drive has been attached to this computer? Eventlog? Registry?
You can use USBDeview to check what usb device was and is connected to the machine. It gives out details like :
And its a freeware :)