I'm assuming that you want to do with scripting what you would do by going into File > Export for > Dreamweaver... If that's the case, then apparently you need to dip into a script called Export as XHTML. According to this thread, "This feature is implemented via scripting so you can't export it as usual." It would seem that ePub is in the same boat.
I'm still relatively new to Stack Overflow so I don't know what the proper etiquette is here. I could copy/paste from the page where I found the answer or I could just link you to it.
This was written for CS3 but I removed the first line and it worked fine in CS5.
What I'm about to link to is a bit over my head, but this PDF might provide you with more information about using Export as XHTML. If you get the SDK you should be able to dig into its source code.
Beyond that, the only thing I was able to find in the Object Model Viewer was ExportForWebPreference. This will help you fine-tune your export settings.
Hope this helps!