When a module is loaded from inside GiD, module can not control theme configuration.
But if you are installing GiD together with your module, there is a variable inside scripts/ConfigureProgram.tcl to control how GiD manage themes.
The variable is ::GidPriv(ThemeSelection), and its value can be:
...