Each of those languages allow you to output to a file, so it is fairly simple. You could of course hard code the drive letter of the deployed drive that would get windows, however, it would be better to read the EnvVars.xml file on x:\kace\engine\ for the system_drive
You can do this as a preinstall, but only after you any partition/formatting tasks, otherwise it would get overwritten.
-Corey