Environment
Environment["var"] gives the value of an operating system environment variable.
Examples
Get the PATH environment variable:
Environment["PATH"]Get the HOME directory:
Environment["HOME"]Please visit the official Wolfram Language Reference for more details.