Have you tried System.Environment.UserName ?
Edit
You are correct, the custom environment name does not work. Here you can try something else that I tested in IIS 7 / Windows Vista:
System.Security.Principal.WindowsIdentity.GetCurrent().Name
It returns "NT AUTHORITY \ NETWORK SERVICE" for me, since my application pool works as a network service by default.
source share