Should be able to do this using the policy:
Local computer policy\user configuration\administrative templates\windows
explorer\prevent access to drives from my computer
Even though it says "My Computer", it really applies to all access.
From the explain tab:
Prevents users from using My Computer to gain access to the content of
selected drives.
If you enable this policy, users cannot view the contents of the selected
drives in My Computer, Windows Explorer, or My Network Places. Also, they
cannot use the Run dialog box, the Map Network Drive dialog box, or the Dir
command to view the directories on these drives.
To use this policy, select a drive or combination of drives from the
drop-down list. To allow access to all drive directories, disable this
policy or select the "Do not restrict drives" option from the drop-down
list.
Note: The icons representing the specified drives still appear in My
Computer, but if users double-click the icons, a message appears explaining
that a policy prevents the action.
Also, this policy does not prevent users from using programs to access local
and network drives. And, it does not prevent them from using the Disk
Management snap-in to view and change drive characteristics.
Also, see the "Hide these specified drives in My Computer" policy.