The PATH environment is stored in the registry here:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
So I guess you could modify it that way.