Doesn't webiopi use Python? Why can't you use that to put the dynamic hostname into the HTML?
Go here for an idea of how to put your markup together: http://code.google.com/p/webiopi/wiki/CUSTOMIZE
Go here for an example on how to grab the host info using python: How can I use Python to get the system hostname?