/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h
Returns true if Playing in Editor, Simulating in Editor, or are either of these queued to start on the next tick.
bool IsPlaySessionInProgress() const