As you all know that all drives in Windows are shared by default. You can manage this sharing through your registry.
The steps include:
1) Click the Start button, and then click Run.
2) In the Open box, type "regedit" (without the quotation marks), and then click OK.
3) In Registry Editor, locate the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer
4) Set REG_DWORD value to 0.
5) And then, locate the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareWks
6) Set REG_DWORD value to 0.
Now, it will prevent hidden shares from working.