You may use the following setting to configure a Group Policy Object (GPO) in Microsoft Windows Server 2012 R2 that will allow you to restrict access to local drives in My Computer.

User Configuration > Policies > Administrative Templates > Windows Components > File Explorer > Hide these specified drives in My Computer