Quoting from fitforwork.org:
While there is no law governing absence management, employers must make sure that recording their employees’ attendance data is in compliance with data protection laws. Sickness absence data is sensitive information and must be kept private and confidential.
If your employer is clued in about what constitutes sensitive data, they should be smart enough to withhold that information. This implies that prospective employeesemployers will be smart enough not to ask about it in the first place, so if they do ask about it, you probably want to keep looking.