Can I check whether a field is available on any of the page layout of an object using code? I have to set a checkbox if the field is available.
Vote for this idea if you feel the requirement is necessary for you:
Page layout data should be available via the Schema apex class that retrieves metadata information on a limited read-only scale within apex classes, or should be available via SOQL.
Certain types of metadata are available in read-only mode in SOQL queries for developer use, even including apex classes and visualforce pages themselves. One object type not currently available without the use of the webservice API is page layouts and their component data.
With the introduction of dynamic inputField bindings in spring11 it's a better time than ever to expose page layouts to developers without having to do incredibly ugly workarounds like calling the webservice API from within apex classes.
This opens up worlds of new possibilities, including visualforce pages smart enough to respect sfdc layouts on actions like creation and edit - where visualforce and it's potential for automation is sorely needed.