-4

Tip #255   [Mac OS X 10.5.3 - Leopard] Set computer name

/usr/sbin/scutil --set ComputerName "COMPUTER NAME HERE"
-or-
/usr/sbin/scutil --set LocalHostName "LOCALHOST NAME HERE"

Alternatively use the --get switch to return them.