Is there a Python way to get all material names?

I am building a Random USD scene builder, where I create randomly sized and positioned meshes (cones, cubes, cylinders, disks, planes, spheres and torus’s), apply physics and drop them and let them land. I specifically want all the base glass, masonry, metals, plastics and wood.