if you are using gss 2 then look up in the pdf file imp_guide I believe the structure of ghregupd.reg file. You can create one via some script and then run ghconfig.exe in dos to name a machine after its imaged and before it even boots in to the target OS.
You can also use WMI after its imaged and booted in to windows (assuming windows is your target OS)