If you are boarding a small, off-peak flight, try asking the ground crew before the flight for a quick peek into the cockpit. Beware that this is highly unlikely and that your best bet is probably boarding or disembarkation. Try to ask a member of the cabin crew or cockpit while on the ground.