If you create a mesh it will have vertices and indices. This command will convert the mesh to vertices only.
sync on
sync rate 60
backdrop on
color backdrop 0
make object cube 1, 10
make object cube 2, 10
make mesh from object 1, 1
make mesh from object 2, 2
delete object 1
delete object 2
lock vertexdata for mesh 1
vertices1 = get vertexdata vertex count()
indices1 = get vertexdata index count()
unlock vertexdata
convert mesh to vertexdata 2
lock vertexdata for mesh 2
vertices2 = get vertexdata vertex count()
indices2 = get vertexdata index count()
unlock vertexdata
do
set cursor 0, 0
print "Mesh 1"
print vertices1
print indices1
print
print "Mesh 2"
print vertices2
print indices2
sync
loop