How to Restricting Writing to USB Drives
Go to following key:
HKEY_LOCAL_MACHINE\SYSTEM\Current Control
Set\Control\StorageDevicePolicies
Create new DWORD WriteProtect and set its value to 1
Also check following tutorial:
How to Disable / Restrict Use of USB Storage Devices in Windows?