http://bugs.winehq.org/show_bug.cgi?id=10018
--- Comment #24 from Dan Kegel dank@kegel.com 2007-11-27 22:09:22 --- I think it might fly to package up wine with a tiny utility -- say, a simple subset of sg_inq -- that is installed setuid root, and spawn that to retrieve the disk id.
$ sudo apt-get install sg3-utils $ sudo sg_inq /dev/hda ATA device: model, serial number and firmware revision: FUJITSU MHT2080AH PL NP0TT5325HFY 006C
Whatcha think? Privilege separation, gotta love it.