Is there an API IsWinPE()?



I want to know whether my program a.exe is running on normal windows
or WinPE. How to know it? Is there an API IsWinPE()?

Thanks!
.