It is unlikely that Sony and Nintendo ever use a Microsoft Windows OS like the Xbox One which uses Windows 10 Core. Sony PS4 and Nintendo Switch both use an OS which is based on FreeBSD/Unix.
But, I think there is a small possibility that Sony and Nintendo may release a console with a Windows/Microsoft OS especially if Microsoft start making more powerful and affordable CPUs which only work on a Windows based operating system, and not work on other OS, or Microsoft buys AMD and make AMD CPU only work on Windows.
There is always a chance that Sony and Nintendo made very bad business decisions which end up causing them to lose a lot of money, and sell their console business to Microsoft or another company who decides to use a Windows/Microsoft operating system in future consoles.
But, I think there is a small possibility that Sony and Nintendo may release a console with a Windows/Microsoft OS especially if Microsoft start making more powerful and affordable CPUs which only work on a Windows based operating system, and not work on other OS, or Microsoft buys AMD and make AMD CPU only work on Windows.
There is always a chance that Sony and Nintendo made very bad business decisions which end up causing them to lose a lot of money, and sell their console business to Microsoft or another company who decides to use a Windows/Microsoft operating system in future consoles.