Tcl delivers the name of the host a script is running on through the info hostname command.
The TclX package has a host_info command.
Returns the information specified by option about the given host. The following options are supported for option: