The Dimension 8300 is only compatible with Socket 478 processors, and none of those have NX. So no your current processor does not have it nor can you upgrade to a processor which has it.
(source: en.wikipedia.org/.../List_of_Intel_Pentium_4_microprocessors )