Microsoft have released a nice tool which help you create WMI queries. WMI Code Creator 1.0 is a powerful tool to create WMI queries without little or no programming skills. I use this frequently to retrieve the model name from computers that I need to target specific driver packages.
Download it from Microsoft: WMI Code Creator