Vertex algebras and the centre of certain universal enveloping algebras