Animation blueprint asset length

I have an animation blueprint assigned to USkeletalMeshComponent by calling SetAnimInstanceClass(). The blueprint contains a blendspace1D node. How can I access it in c++ code to get the blended animation length? Thanks.