Using nmap to detect realtime operating system

I would like to understand whether nmap can be used to detect the operating system type for realtime OS (Vxworks, threadx, free RTOS etc.,).

Has anyone done similar work before or if u have any idea how to do that , please help to share