An .epub file is just a .zip file with a few restrictions on its layout. So all you need to do is:
- rename file.epub to file.zip
- unzip file.zip with your favorite unzipper
You should end up with a directory containing all the components of the ePub, including the .xhtml files you are looking for.