Yes they can, and I know people who have found this to their cost!
This link will tell you about gatso cameras
http://www.speedcamerasuk.com/Gatso.htm
Quote from site "Gatso speed cameras can also identify between cars/vans and HGVs separately. For example, if the speed limit was 60mph for cars/vans and 40mph for HGVs the camera will enforce the two separate limits."
I have just visited the website.
I did not realise, as you correctly point out, that a camera could operate two different speed limits as related to vehicles.
The website says that it differentiates between cars/vans and hgv's., giving an example of 60mph for cars/vans and 40mph for HGV's.
So my comment as it refers to caravans still holds good.
If a 60 mph limit is in operation for, say cars/vans, then depending on road type, a caravan could be towed legally at either 50 mph or 60 mph.
I doubt whether a camera would be programmed to recognise a caravan from the rear, as this view is too similar to a coachbuilt motorhome, which is not limited in the way a towed caravan is. It would create an immense amount of human labour in checking the differences because, if the check was automated, it would refer to the towcar number plate and register as a vehicle permitted to travel at the higher speed limit.