You can get this information from the WindowsPrincipal class.
Check out
this article for a detailed code sample.
The trick here is in the line:
myPrincipal.IsInRole( WindowsBuiltInRole.Administrator ) ? "True"
: "False"
,
You can check the current principal to check to see if the current user is an administrator.
Reed Copsey, Jr. -
http://reedcopsey.com