Hi,
you probably could do this via ESXi SNMP agent. VMWARE-ENV-MIB seems to provide status of physical components. What exact information is available probably depends on actual server model. I don't have any ESXi system available for test in my office, so I cannot confirm it 100%.
Best regards,
Victor