Loop through all of the Keys in:

HKEY_CURRENT_USER\Network\

And look for the entry named RemotePath

Hope this helps,