Laptops are pretty efficient these days. I use one of the newer M1 Mcabook Pros for work and its power adapter is a 96 watt adapter. Desktop, it really depends on what you have in it. A mid-range gaming desktop will usually have ~750 watt power supply, though you're not always using the full amount (same for the laptop adapter too).
If you're serious about it, buy one of these and plug your work computer into it for a day to see how much it draws.
https://www.amazon.com/gp/product/B08GSPLZBN/
A decent solar setup of ~600 watts could handle a laptop and a few other devices with probably just a 200 amp hour lithium battery perrty easily, rough cost ~$2,500 or so. What will kill your battery though is running the air conditioner. For comparison, iirc my 13500 BTU air conditioner pulls about 1600 watts. The 200amp lithium batteries range from about $700-$1000 each so you can see how quickly the price jumps for supporting AC.