Most phones show you their IMEI number if you dial *#06# from the dialpad. It's often written on the box and often on a label behind the battery if your phone has a removable battery. The SIM number is often visibly written on the SIM card. If not, many phones show the SIM card number in the 'about' settings.