How to extract the tag associated with the text value from dxf block layout.
Here is a screenshot:

For example, TITLE is the header that comes as part of drawing format layout, DESC is the text tag associated with the TITLE Content "BASE". How can I extract the DESC (&TITLE) with TITLE Content.
I tried viewing the dxf file in notepad but doesn't have these tag entries. Is there a way to extract not only the text but also the associated tag?
As the name ezdxf already says, ezdxf works with DXF files not with DWG or DRW files, unlike DXF, is DWG an undocumented binary encoded AutoCAD file format.
Maybe you can export your files as DXF files to process them with ezdxf:
Scenario 1, ATTRIB attached to block reference INSERT:
Scenario 2, ATTRIB, MTEXT or TEXT as standalone entity in modelspace or paperspace:
Scenario 3, entities located in BLOCK definitions: