I.D.Key

I would like to implement an ID Key for QNX4 using the hard disk serial
number and therefore seek advice on how this can be read. An altenratvive
would be to read the Pentium chipID, if this is possible. Look forward to
some suggestions.