You can find the codes on Course Search. If you click on the course title, a table will be displayed entitled 'information required to complete the UCAS application', which will show all of the necessary codes. Not all courses require a campus code: if your course does not have one, it may be displayed as a dash in the table.