Perhaps a DLL Call to Windows Networking WNetGetUniversalName (MPR.DLL) API?