I been searching around on how to programically detect if a computer has hyperthreading enabled. Any ideas?

Most of the solution I found only reports the number of Processors Windows see.

How about checking the BIOS to see if hyperthreading is enabled? Is that possible? I am mainly concerned about my compaq servers.

Thanks

grayman