You could try to script something up (the WinPE environment DOES come with powershell) ...
Check out the part about dynamic queries in -- Getting Started with the MBSDK (Example Scripts Included) -- that may help answer your question (i.e. - "you run a script on the client, which talks to the MBSDK ... does its query thing ... and based on the response, you can do your decision stuff).
Does that help?
Also ... if you're re-deploying, you could just include the hostname as a variable / token ... we'll match the device (based on MAC-address) to its existing record, so you can make use of the "full inventory" regularly ... and just yank the host name out of that.
That is helpful and Am going to play around with that, I think I figured this out by scheduling a Display Name Prompter and just set it to LD-host name with a 1 second timeout. I am not sure if this is conventional but it works