The best way (I think) is to search the block collection, filtering out xrefs, and the checking for text, mtext, attribute references, attribute definitions, constant attributes and tables. Tables and Mtext you will have to search the string also, because they can have style overrides within the string. This is how I would do it.