__MODE_X32__ is defined when the project is compiled for the X32 architecture. See Project: Settings.
Example:
INCLUDE rtcu.inc PROGRAM test; #IFDEF __MODE_X32__ THEN DebugMsg(message := "Compilation architecture is X32"); #END_IF END_PROGRAM;