To use an iPad as a second screen on a Windows 10 computer, you'll need to use a third-party app like SplashTop.
You can use your iPad as a second display for your Mac through the Sidecar feature, which comes pre-installed.