hope this would help...
you can get many of such system and h/w related values by passing appropriate flags to getconf
for example
getconf CPU_CHIP_TYPE
also refer this manual page for a rich set of such flags applicable to hp-ux
http://docs.hp.com/hpux/onlinedocs/B....html#examples
I don't know whether this is a command in BSD...