Is there a way for a BOM to generate a hardware list based upon different parts that are in an assembly?

Is there a way for an assembly to generate a hardware list based upon different parts that are in an assembly?

For example... If I have in 4 drawer slides in my assembly, it would update a BOM tell me I need a qty of 12, 5/16" 8-32 screws. Or, If I bring 4 leg levelers in to an assembly, then the hardware list would update and tell me I need 20, 1/2" 8-32 screws.

....Shed some knowledge on me...

SolidworksAssemblies