Create a Blueprint Function Library class in C++ and add this:


//.h

UCLASS()
class GAMENAME_API UReadVersionBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
UFUNCTION(BlueprintPure)
FString GetProjectVersion();
//...

//.cpp
FString UReadVersionBlueprintFunctionLibrary::GetProjectVersion()
{
    FString ProjectVersion;
    GConfig->GetString(
    TEXT("/Script/EngineSettings.GeneralProjectSettings"),
    TEXT("ProjectVersion"),
    ProjectVersion,
    GGameIni
    );
    return ProjectVersion;
}