American English (I'm pretty sure British English uses neither second grade nor grade 2):
The first one is okay. The second one is wrong.
I am a student of history. I study history.
I am a student of grade 2. I study grade 2.
Professional educators sometimes call it "grade 2", but we usually call it second grade.