Most US Navy ships have had CIWS systems since the 70s and have had many upgrades to their tracking systems since then. The US Army adopted the LPWS (C-RAM) which is basically a portable CIWS for land use. (The Russian version of the CIWS is called a Kortik.)
It wouldn’t surprise me if there are already CIWS-type systems for commercial ships operating in hazardous zones.
I have had the pleasure of standing next to a few CIWS systems during live fire testing and it’s quite the experience.