Try this:
TArray<UStaticMeshComponent*> Components;
Actor->GetComponents<UStaticMeshComponent>(Components);
for( int32 i=0; i<Components.Num(); i++ )
{
UStaticMeshComponent* StaticMeshComponent = Components[i];
UStaticMesh* StaticMesh = StaticMeshComponent->StaticMesh;
}