How do I check if a certain Skeletal Mesh is being used before Doing something

For an example of what I’m trying to accomplish, Checking if a Skeletal Mesh is being used before setting the max walk speed.