cpuid / Processor Serial Number

I am looking for a way to get the Processor Serial Number from PIII chips.
Instead of me writing some inline assembly I was wondering if anyone hade
some code already written to do this.

Thanks
Paul