Well HT is a major info when you count the cores with /proc/cpuinfo. Should not be that hard however. Other systems do not have got those dmi values you parse, so better forget em.