/Engine/Source/Runtime/Core/Public/Misc/OutputDeviceConsole.h
Returns whether the application is already attached to a console window.
true if console is attached, false otherwise.
virtual bool IsAttached()