If this were possible, it should be listed among the Available Condition Keys for S3 policies.

Since it does not appear, it does not appear to be supported.