Technologies that could identify the age of internet users are being trialled as the government looks to introduce age limits for social media.