How do I get the list of dimension presets in script?

I need to get at the values available in the Dimension Preset (Global) dropdown in the Render Settings pane.
Someone posted a script showing how to do this on ShareCG, but it's apparently rejecting new registrations.