Hint:
Write the coordinates of the vectors as row vectors of a matrix, and perform row reduction of this matrix. The rank of the matrix will be the dimension of the subspace, and the non-zero lines in the final matrix will correspond to the vectors that span the subspace.