You can try this action:
Type: Format Value
Field: DATE (or whatever you want as tag to save the year into it)
Format string: $regexp(%_FILENAME%,.*?((17|18|19|20)\d{2}).+,$1)
to fullfill your condition
AND failing to meet these conditions, the Date tag won't be replaced.
you have to (mandatory!) FILTER your songs BEFORE you use the above action, with %_FILENAME% MATCHES ((17|18|19|20)\d{2})
otherwise you get the full filename for those not matching (not including 1700 until 2099) into your DATE.
As always for regular expressions:
Please test it on your backuped test data before you use it on your collection.