/Engine/Source/Developer/SourceControl/Public/ISourceControlModule.h
Check whether source control is enabled. Specifically, it returns true if a source control provider is set (regardless of whether the provider is available) and false if no provider is set.
bool IsEnabled() const