Personally, I would use an XML parser to find all of the descendant w:drawing elements. I would not use the strongly-typed OM of the Open-Xml-Sdk for this. I would use LINQ to XML for this.
Your code will work, but looking through text of XML for specific patterns probably isn’t the best way to proceed.