As far as I know, not with the built-in commands in Windows.
Take Command Console LE, a command interpretor compatible with cmd.exe, can save variables as System and User variables. Check the SET command with the /S and /U parameters respectively.
set /s sysvariable=whatever
set /u uservariable=whatever
I've not used it but Rapid Environment Editor looks good and is free.

