There is nothing in the SDK, you will need to write custom code to purge old versions
SharePoint Products and Technologies do not enforce a limit on the number of
versions.
However, there is supposed to be a tool on the Resource Kit CD that you can
schedule to prune the Document Libraries to a given number of versions. I'll
ask Bill English tomorrow.