It is possible by set of flash applications developed by buttonbeats.
You can play the instruments online as well as offline.
Just go here : http://www.buttonbeats.com/ Here you can play, hear, see music.
You can embed the script code given by buttonbeats in your blog or web site.
Hi, Wear your headset and play the violin, keyboard, drums in this page.
It is really cool.