Here is a small example program (very early test code) that I originally wrote in C++/DarkGDK while working on my DBO2X exporter app and SegAutoWelder a long while back. It extracts all the texture filenames in the DBO.
[update 18Jul18-will update the code soon...]