Is it possible to export a list of blocks that are in a drawing

This would be used as a Bill of materials