Unfortunately, this is not possible to do using CloudFormation. You will need to add new AWS::Lambda::Version sections in your CloudFormation template for each version.
The closest solution would be to create .erb templates and have it generate CloudFormation templates with all the versions.