The German Personalausweis seems to offer something like this (basically returning a bool indicating whether a user is below or above a certain age), but it seems as if the service indicates which data it requests from the ID card. As a user, I would not be able to state that this or that porn site should only see this age verification.
Not sure how the requestable data are in turn requested by the service.