UAssetManager::GetContentRootPathFromPackageName

Returns the root path for the package name or path (i.e. /Game/MyPackage would return /Game/ ).