Use the other overload of the Environment.GetEnvironmentVariable Method that lets you specify the EnvironmentVariableTarget.
Environment.GetEnvironmentVariable(variable, target);
target can be:
EnvironmentVariableTarget.Process
,
EnvironmentVariableTarget.User
,
EnvironmentVariableTarget.Machine
.