When you export your level as an X model, it will also export the textures to the same folder, so you don't need to worry about it ... and BTW, you may want to use the X exporter I wrote (see the CShop forum), as it's a little more flexible that the official one.
If you don't mind writing your own file parser, then you can use either the official entity exporter or my properties exporter (see the CShop forum) to dump out all associated entity/property information for location of objects.
The difference between the two exporters is that the official one exports entities and their properties, while mine exports all properties, whether they belong to entities, brushes, or groups.