I would check out WMI (Windows management interface). Using that you can access a lot of windows internals, it's mostly read only stuff but there is plenty you can do with it. I have used it before from perl with a decent amount of success. Just do a search for perl and WMI for some examples out there. Microsoft’s docs are obviously not geared towards perl but once you get basic communication going with WMI the docs will be clearer.