The command “system_profiler” will return all the hardware information.

Other useful commands include sw_vers, hostinfo, and uname -a.