MacOS doesn't have any easy way to do this. The disk driver is stored on the disk itself, and some drivers go back to the Mac Plus. Some drivers might have the capability to do this (with vendor-specific control calls), but most probably don't.
If you want to do this you will have to use the Old SCSI Manager, SCSI Manager 4.3, ATA Manager, or FireWire Manager to talk to the disk itself and ask it what it's temperature is. Even getting to the point where you know which Manager to talk to the disk with is tricky. You have to go from a volume reference number to a drive number, to a driver reference number. If the driver reference number is from -33 to -40 (inclusive), it is an Old SCSI Manager driver, and you can use the exact value to determine what SCSI ID the disk is (the SCSI ID is what the Old SCSI Manager uses to talk to one particular SCSI device). Otherwise you have to ask the SCSI Manager 4.3, ATA Manager, and FireWire Manager if that driver reference number is registered with them, and get the info that that Manager uses to talk to one of their devices. Each Manager might not actually be installed, so be sure to use the Gestalt Manager to see what is present
Once you know which Manager to use and have the ID of that particular disk, you have to actually ask the disk what it's temperature is. How you do that is bus-specific, and possibly disk-vendor-specific. I have no idea how to do it. But I also know that some SATA cards actually pretend to be SCSI cards, and might or might not have a way to send the right ATA commands to the disks that it pretends are SCSI disks.
Good luck.