You can engrave information on expensive parts to help prevent theft, but even sneakier is to leave a note with your info in the seat tube. A bike thief will rarely ever look there and should the thief or a future owner take it to a bike shop, the shop might very well find the note.
If your bike falls prey to a thief despite your best efforts, take a few steps to reduce your losses and increase the chance you'll get it back.