UK 20 week scans - will they write the gender down for me?

We found out today that regulations have changed and my partner is not allowed into my scan today. If I asked them to write the gender down for me, will they or are there certain rules?