It is likely that Microsoft has locked down access to the IR camera for security, but I know some other people who have tried. From what I've been able to find, it seems like this was once possible on Windows 10 (with no recent news on Windows 11). Check out some prior attempts here and here