First of all, one can tell a lot about the structure of these molecules by looking at their full names - Adenosine triphosphate and deoxyribose nucleic acid.
There are many structural similarities between ATP and DNA nucleotides, with both being made of a pentose sugar, containing a phosphate and also (at least with some DNA nucleotides) containing an adenine base. This being said, the pentose sugars that they are made of are different (deoxyribose in DNA compared to ribose in ATP) and they contain different numbers of phosphates (three in ATP and only one in a DNA nucleotide). Also DNA nucleotides aren't limited to soley being made using adenine bases, with guanine, cytosine and thymine also being options.