Why would you want to know the address of the environment variable? In any case, if you read perlguts you can see that any perl variable is implemented as a pointer to a generalized struct, so it shouldn't be too hard to get that pointer from XS code. Devel::Peek might also be useful.