Google "restoring damaged wood windows" and go to images. I'm seeing lots of damage photos. Peruse and click on likely choices and many of them, also youtube videos, should lead you toward learning how to fix wooden fixtures. Mainly, you need to removed the damaged parts and add something else for structure and look. Wood windows are relatively easy to restore. Esp the bay windows that have no moving parts. Push gently on the window, glass, frames, then push little harder. Do they move? If not, your frames and window probably can be restored, even if it's cosmetic, without complete replacement. The rough frame, example, may not have to be replaced at all, as long as around 50% of the body is intact, termite damage or not. Even trying to see this involves too much destruction, you can decide to turn a blind eye. I'm not joking.:smile: A house and its framing can tolerate lot of damage to smaller bits of its parts.
Go to paint section for what paint to use. BenjaminMore seems to get high recommendations.
After priming and first coat, I caulk glass to wood joints then second coat covers the caulk too. Glass to wood joint used to get glazing (kind of oily putty) and you may have to remove the putty and reglaze, if that's what you have.
I would recommend looking for a carpenter, make sure it's for evaluation only but keep in mind that a pro probably would do better job than youself, esp setting up a scaffold. Second story, so I think a scaffold is a must to do a proper restoration. It is almost impossible on a ladder unless diy and each step taking more effort and time.