Have you tried using the registry? In Windows 95, 98, and Millenium, there is the following key:

HKLM\Security\Access\

And each sub key under this key represents a shared folder. Since I don't have these OSs, I can't give you more info on this one.

In other Windows OSs, the key is:

HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares\

And each value in this key represents a shared folder. The data for each value contains the actual path, as in "Path=c:\data\databases".

So, you could loop through each key/value (depending on OS) and look for the one that contains the path to the database. To get the actual share, just add the computer name to the front. To get the computername, you can do Environ("%computername%).