Yes from your embassy. If divorced you must present your divorce certificate and if your former partner has passed away they probably need a copy of the death certificate.
Remember you if you do manage to get an Ed visa YOU MUST ATTEND CLASSES immigration will check your progress and interview you in Thai or get a Thai fighter to take you on.