The prosecuting attorney shall report to the attorney general for reporting to the National Instant Criminal Background Check System the name and other identifying information of any person who is acquitted of a crime by reason of insanity pursuant to § 23A-26-5 or who is determined to be incompetent to stand trial pursuant to §