title: How to get serial number from Mac hard disks?
body: <p>Is there an easy way to get the serial number of all the hard disks in a Mac using an API?</p>
  
  <p>Basically, I'm looking for a unique identifier for the hard disk with which I can figure out whether the hard disk has been used (or referred to) by my application or not.</p>
  
  <p>Please let me know if there is any other solution.</p>
  
  <p>Note: I need this solution for 10.4 and above.</p>