IANAD (I am not a doctor) but...
There is no connection between epilepsy and strokes - do you mean seizures? (Strokes are loss of blood flow to the brain, seizures are disruption to the nerve signals within the brain).
Epileptic seizures are a no-no for most flying, certainly commercial, for good reason.
For flying for pleasure, the UK proposed National Private Pilots Licence suggests similar medical rules to those for driving cars, and people with a history of epilepsy that is now controlled sufficiently for them to be passed fit to drive _may_ qualify. As the law is not yet changed, we will have to "watch this space".