/Engine/Source/Editor/UnrealEd/Public/Kismet2/ChildActorComponentEditorUtils.h
Returns whether child actor tree view expansion is enabled in project settings
static bool IsChildActorTreeViewExpansionEnabled()