All living things store genetic information as DNA. But the DNA just dictates instructions to build proteins. Saying that different species of trees differ in their DNA gives a cursory answer to the quesiton, but it does not address the chemical issue of what compounds give different types of wood their different properties. Furthermore, saying that the difference is in the DNA isn't too useful of an answer anyway, since AFAIK only one species of tree has had its genome sequenced.