Is any programmatic way (maybe API) to detect a Klarna merchant country by a given EID?

No, this is not possible.