All narcotic drugs, the lawful possession of which is not established or the title to which cannot be ascertained, which have come into the custody of a peace officer, shall be forfeited, and disposed of as follows:
(a) Except as in this section otherwise provided, the court or magistrate having jurisdiction shall order such narcotic drugs forfeited and destroyed. A record of the place where said drugs were seized, of the kinds and quantities of drugs so destroyed, and of the time, place, and manner of destruction shall be kept, and a return under oath, reporting said destruction, shall be made to the court or magistrate and to the Director of the Drug Enforcement Administration by the officer who destroys them;
(b) Upon written application by the Director of the Department of Health, the court or magistrate by whom the forfeiture of narcotic drugs has been decreed may order the delivery of any of them except heroin and its salts and derivatives, to said Director of the Department of Health, for distribution or destruction, as hereinafter provided;
(c) Upon application by any hospital within this state not operated for private gain, the Director of the Department of Health may in his discretion deliver any narcotic drugs that have come into his custody by authority of this section to the applicant for medicinal use. The Director of the Department of Health may from time to time deliver excess stocks of such narcotic drugs to the Director of the Drug Enforcement Administration or may destroy the same;
(d) The Director of the Department of Health shall keep a full and complete record of all drugs received and of all drugs disposed of, showing the exact kinds, quantities, and forms of such drugs; the persons from whom received and to whom delivered; by whose authority received, delivered, and destroyed; and the dates of the receipt, disposal, or destruction, which record shall be open to inspection by all federal and state officers charged with the enforcement of federal and state narcotic laws.