Have you tried WMI?