This doesn't directly address the question of "how do I get the ID from a published Google Doc." I couldn't figure out how, unfortunately.
But if you're just trying to read data from the document, the webpage for a published Google Doc has very simple HTML to parse (right now at least). For example:
This probably won't be stable. But it's convenient because you don't have to use Google's OAuth system.