There is IsNetServer() and the undocumented IsNetworkRenderServer()
Which I guess both do the same: report the mode 3ds Max is running in
From the docs:
Returns true if 3ds Max is operating in network rendering mode and false if operating in normal interactive mode.
the network rendering mode does'nt require a valid Max license to be active...