In the OPS/MVS Command & Function Reference Guide for the OPSINFO function - page 4-71.
Use the variable 'hardwarename' to return the CPCNAME value that is displayed in the D M=CPU command.
var = OPSINFO('HARDWARENAME')
Returns the name of the processor configuration, or a null string if used on any z/OS release below 5.2.2.
This will return the CPCNAME value of the D M=CPU command:
CPC NAME = 'MF01'