How to find out true names?

Using the spell planar binding I can bind a individual by calling its true name. But how can I find out a true name besides the discovery True Name. I guess I cannot find true names in books.