Selecting The Static Mesh of a Spline

I currently have a road in Unreal C++ made by SplineComponents with Static Meshes on them.
How would I use C++ to obtain the Static Mesh material(s) on the spline?