How does Sharepoint, specifically older versions such as 2007, store documents and their versions?

I trying to export documents from a sharepoint 2007 website. I am looking at powershell and also at the exorer virw as options. The explorer view is not working with IE. How does Sharepoint, specifically older versions such as 2007, store documents and their versions on disk. Is the name related to the name of the doc?