I think you can achieve this by deleting the connection (at the client side) to the shared resource.
Something like this:
from command prompt:
<pre>net use \\server_name\shared_folder /delete</pre>
For a list of all active connections:
As always, please test this before executing on production environments.
Hope this helps.