You are close, and don't worry this is not easy to find in the DXL Help either.
Link lnk
for lnk in all (current Object) -> "*" do
{
print "Link found"
}
The only word I added is all
. That allows it to find versioned links. You can search Versioned Links in the DXL Help and you should find it.