There is a way through the user key, but if I told you I had to kill you.

From the engine, AFAIK the only way is the edition variable. For what do you need the edition before opening the engine?