Assuming you have a reference to the Blueprint class where this variable is defined and a reference to the Blueprint instance of this class, you can do this:
UIntProperty* IntProperty = FindFieldChecked<UIntProperty>(BlueprintClass, TEXT("VarName"));
int32 VarValue = IntProperty->GetPropertyValue_InContainer(BlueprintInstance);
FindFieldChecked will trigger an assertion if the variable does not exist.
Anyway if you have a base class defined in C++ it’s better to define that variable inside the native class, as other members already pointed out.