Does the author of university coursework retain copyright to it after submission?
It depends. Generally speaking, yes.
...some universities and colleges may ask that the students assign their copyright over to the establishment when enrolling. Alternatively, the establishment might extract a royalty free licence for any works created as a condition of enrolment. In the absence of any such contract, the copyright would remain with the creator.