To get this path on Windows 9x, make sure profiles are enabled. Then, query:
Key: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Value name: Desktop
Then strip off the last folder name, which would be the localized name of the Desktop folder