Locking Software to USB flash drive

Hi, I am beginning with my own business, and I would like to distribute my own software on USB Flash drives. Is there any possibility to make software work only if one particular USB flash drive is connected to the computer, by reading some unique properties of USB flash drive (like serial number)? Software runs under windows (XP or vista)If there is possibility: how to read the properties and which devices to use.


Thank you


I know that it is completely possible, because in my highschool CAD class we have an architecture program that only runs if a certain flash drive is plugged into a main computer. It contains the license key and other things like that. I have no idea at all how to do it but it is definitely possible.