Reading ATA/IDE drive serial number under QNX 6.x

Does anyone know how to read a hard drive physical serial number from a
C/C+±program under QNX 6.x?

Thanks
Jens