The isDefaultNamespace() method of the Node interface accepts a namespace URI as an argument.
isDefaultNamespace()
MDN Reference