Hi
Look at
GL_MAX_ELEMENTS_VERTICES and GL_MAX_ELEMENTS_INDICES. If it returns weird values (the biggest integer or a negative value), assume it's around 3000 and 4096. Of course, you can perform several calls of glDrawArrays or use glMultiDrawArrays (but it's sometimes buggy and not noticeably more efficient that a dummy loop).
N.B: It's an hint, you can ignore it but your program will become slower.