Canadian engineers have to take a short closed book 3-hr Professional Practice Examination (PPE) covering "ethics, professional practice, engineering law and professional liability" as part of the licensing process.[1]
The reference is from Professional Engineers of Ontario as Canada's engineers are regulated at the provincial level, but thankfully is also generally similar across the provinces. I'd imagine the American version (PE)[2] is somewhat similar.
While engineering law (typically torte) is a very small slice of The Law (TM), at least it's a start in the right direction.
Note that this would only apply to a subset of coders who actively seek out a professional "Engineer" title designation. Most computer engineering or electrical engineering graduates (probably the most likely population) don't need to, and don't actually end up, becoming professionally designated.[3]
[1] http://www.peo.on.ca/index.php/ci_id/2060/index.php?ci_id=20...
[2] https://www.nspe.org/resources/licensure/how-get-licensed
[3] Anecdata