The read-only systemId property of the DocumentType returns the URL of the associated DTD.
systemId
MDN Reference