When visa refusal are made the Embassy will send a formal notice of refusal.
This will contain all the details and the forms for any appeal you want to make.

There's quite a lot of information here also, a quick search will help.

You can also find some good information on the UKBA website.
Here's the UKBA webpage on Appeals - visas and entry clearance

Be sure to follow all the links.