Is there Javascript based mechanism with which i can detect, through a browser, that a user has a specific usb device plugged in?
For security reasons, JavaScript in web browsers provides only restricted access to computer resources. It is not possible to store files in an arbitrary folder, start applications or communicate with a USB device.
But there are some exceptions :