Assumes you're on a Mac or know what you're doing.
$ dd if=HD0-someimage.hda of=./driver.img skip=64 count=32 bs=512
$ md5 driver.img
MD5 (driver.img) = d0d8c3c75272318f52d2959bd89b995f
MD5 (Apple-Drive-Setup-1.7.3.img) = d0d8c3c75272318f52d2959bd89b995f
MD5 (Apple-Drive-Setup-2.0.3.img) = 65d733852e43d0069ce047303aa8da4e
MD5 (Apple-HD-SC-Setup-7.3.5.img) = 091d091ac0142ee8fe2c5a8804f1b64d
MD5 (FWB-4.5.2.img) = ce338fe6899778aacfc28414f2d9498b
MD5 (Lido-7.56.img) = e9744928bb5740e6319c46ec1f411258
MD5 (MacOS8-Installer-Driver.img) = 0db042c0a77c40ae3e541aa967e521ba
Thanks, super useful. Quick python script to do the same: