Hi Carlos!
At the moment I think there isn't an easy way for getting this, so you would need to change some Moodle core code. This was talked too some years ago at this forum thread: https://moodle.org/mod/forum/discuss.php?d=320875
If you feel it would be great to have this on Moodle, you can create an improvement at the Tracker: https://docs.moodle.org/dev/Tracker_introduction
Best wishes,
Sara