Probably the easiest way to know for sure if it is the end links would be to just un-bolt one side from the strut and strap it to the rubber brake hose so it don't flop around, then just drive it up and down the curb at your driveway or whatever makes it clunk a few times. If the noise is still there that's not it, if it mysteriously disappears... that could be it! Happy hunting
The easiest way to diagnose sometimes is process of elimination. But I did have an E39 that I did this to and it ended up being the sway bar making a clicking noise when flexing in the bushings. It's not as common as the end links, but is a cheaper fix. Just take the bushings loose and lube it up where the bar slides through, then try again