From the Apple menu in the corner of your screen, choose About This Mac. You should see the name of the MacOS, such as MacOS Monterey or MacOS Big Sur, followed by its version number.
To find out which version of Windows your device is running, press the Windows logo key + R, type winver in the Open box, and then select OK.
Here’s how to learn more: