You can access environment variables using the brace-enclosed environment variable syntax. Example:
VM options: -Dfoo=${MY_ENV_VAR}
MY_ENV_VAR environment variable will be expanded properly.
Update: tested in IntelliJ IDEA 2017.1.2 and still working.