I pulled this excerpt off of Google Search:

quote:

Each time the user logs on to a computer, Windows 95 searches the Registry
under the following key to determine whether the user has a local profile:

Hkey_Local_Machine\Software\Microsoft\Windows\Current Version\Profile List

Windows 95 also checks for the user profile in the user’s home directory on
the server. If the user profile on the server is the most current, Windows
95 copies it to the local computer for use during the current session, and
then it loads the settings in this local copy into the Registry. If no local
user profile exists, Windows 95 copies the server version to the local
computer. If no profile is found, Windows 95 creates a new user profile on
the local computer using default settings. If the user doesn’t log on, then
Windows 95 automatically uses the default user profile.
Both the local and network copies of the user profile are automatically
updated with current settings when the user logs off.
If the user is logged on at more than one computer at the same time, any
changes made to the profile on the computer where the user first logs off
will be overwritten when the user logs off the other computer. In other
words, the last logoff is saved, and no merging of changes occurs.

If you can use a reg search using the @userid macro for the existence of a user profile, then you could search for the desktop path.