The following execQuery call returns an enumeration of all instances of the CIM_device class in the current namespace.
cc.execQuery(new CIMObjectPath(), SELECT * FROM CIM_device, cc.WQL)