Depends on the country, I suppose. But you'd likely have to be a citizen of that country to get a response. For instance, Malte Spitz sued Deutsche Telecom for his metadata.[0]
The Danish Logingsbekendtgørelse does not have that functionality, as they claim the data to be non-identifiable and requires a warrant. I do not know what the FRA rules are.
Although, honestly, I doubt the intelligence agencies would give you a truthful response. Only ministries are required to do so.
How do I do this?