From the root of the drive you can run:
dir *.* /s > file.txt
Edit: If you're doing this on a server w a large amount of files you're going to generate a rather large file so keep that in mind. If this is a 500GB file server you might want to drill a directory or two down and run it once for each directory.