I mean with Dynamo. Get your Spaces and get the windows/doors in those spaces. Calculate the wall area from the available Space parameters and the window/door openings from their respective families and then do the math.
Try doing some research on your own first. Most of this process will just be getting parameter values from the elements and doing the math. The Dynamo Primer is a great place to learn the basics and get you started.
I go over some of the steps in this post, but as I mention there this isn’t really a great ‘first graph’ as there is a lot of complexity along the way.