Step 1: Pull up the Run dialog box and launch the Registry Editor (regedit).
Step 2: In Registry Editor, navigate to the following value:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
Step 3: From the right-side pane, double-click Start and change the value to “4”. Make sure that the value type is Hexadecimal.
Step 4: Apply your changes and reboot the machine.
That’s it – any USB removable storage device that was configured on
your machine, will now not work. Should you want to enable those back,
change the value back to 3 and reboot the machine again. The process
applies to both Windows 7 and Windows 8 operating systems.