Hostname to IP: nbtstat -a [hostname]
IP to Hostname: nbtstat -A [IP]

You could also use ping.
ping [hostname]