We have some rules here, and one of them is:
(6) Do not post classroom or homework problems.
And this looks like homework to me. I'll give you a hint though, don't use the structure, use the components of the structure. Look at that utsname.h file to see what they are.