There are models for each that support 64bit.
Pretty sure you are okay with the pentium d I think almost all of them are x64.
The Celeron d is a bit trickier though, as there are two sets of chips labeled as celeron d and one does not support 64 bit instructions.