Try one of these: http://www.ctan.org/info?id=flatex http://www.ctan.org/info?id=flatten
(found by searching ctan.org for packages with the keyword "files")
The LaTeX command \listfiles might also be useful. It won't
include the included files, but will give a listing of all the files
that LaTeX needed to run your document.