This is something I've actually wanted on more than one occasion. Is there any artificial way to get a computer to "smell" things?
The science and discovery of all this is really fascinating, I recommend The Secret of Scent by Turin: http://www.amazon.com/Secret-Scent-Adventures-Perfume-Scienc...
(1): http://www.syft.com (2): http://www.syft.com/products (3): http://www.syft.com/solutions/food-and-flavor-analysis
(disclosure - I have a very small investment in the company)