You can take screen recordings on a Chromebook using either a keyboard shortcut or the Screen Capture tool.
You can screen record on Windows 10 using the Game Bar. A third-party app like OBS Studio allows you to record your screen and computer audio.