/Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintPathsLibrary.h
Returns the base directory of the "core" engine that can be shared across several games or across games & mods. Shaders and base localization files e.g. reside in the engine directory.
engine directory
static [FString](API\Runtime\Core\Containers\FString) EngineDir()