Is it possible to submit a thesis to a univeristy without having been enrolled while writing it?
Probably not without meeting some minimum requirements.  At my university a student must be enrolled for a min of two years full time.  There are exceptions but require an extensive justification to be put forth that is then review by a committee.  Also any parts already submitted for the award of any degree cannot be reused.