View environment variable of process on Windows Process Explorer or one of its friends should help. Check out GetEnvironmentStrings.