The following method only allows to hide drives A, B, C, D and some of their combinations.
How to limit access to drives A, B, C, D with gpedit.msc
- Click "Start" -> "Run".
- Type "gpedit.msc" and hit the "OK" button.
- Expand "Administrative Templates" in "User configuration"
- Expand "Windows Сomponents"
- Select "Windows Explorer"
- On the right side of the Windows find "Hide These Specified Drives In My Computer" and double-click it. Turn hiding on and select the drive letters that you want to hide
- Hit the "Apply" button. Hit the "Ok" button.