Yes absolutely. You may get AWS pricing programmatically that is cost/hour of each instance type, cost per GB/month of storage on S3.
First you may use pricing API by AWS: There is now AWS pricing API: link
These are some of the JASON files that should do your job:
Note you need to strip the function calls off here.
a short command to get current set or URLs from any AWS pricing page. Example based on EC2. Run it on Linux.
curl http://aws.amazon.com/ec2/pricing/ 2>/dev/null | grep 'model:' | sed -e "s/.*'\(.*\)'.*/http:\\1/"
I hope this helps