I've never heard 'write' to be used as 'to study'. 'Read' is an alternative British word which can mean 'to study'.
I've only heard it used to refer to the subject which you are studying. As in 'I read law at X University'. Perhaps you could say 'I read the Bachelor of Science in Chemistry at X University' if you wanted to be specific.
I would personally say 'I'm doing a Bachelors/Masters degree/PhD in X at X university. That is, you 'do' a degree. You 'study/read' a subject.