ssh to the hscroot user on the HMC and run:

for system in `lssyscfg -r sys -F type_model*serial_num`
do 
echo "${system}:"
lssyscfg -r lpar -m $system -F name
done