Equation (8.63) from Ashcroft and Mermin will be helpful. I have listed it below for convenience:
##g_n(\mathcal{E})=\int_{S_n(\mathcal{E})} \frac{dS}{4\pi^3}\frac{1}{|\nabla\mathcal{E}_n(k_x,k_y,k_z)|}##
I know you want to know how to compute density of states numerically. I was referring to this formula merely to give an insight behind the procedure involved in doing this computation. So what is happening in the above formula is this: in k-space you have found a surface with equal energy ##\mathcal{E}## and you are integrating the quantity ##|\nabla\mathcal{E}_n(\textbf{k})|^{-1}## over the surface. In other words, this integral is "counting" the number of states that lie on this surface of equal energy. This is the density of states by definition. Now, in your data set, you pretty much have to: (1) pick an energy ##\mathcal{E}## (2) determine how many data points, which are indexed by ##(k_x,k_y)##, have an energy ##\mathcal{E}(k_x,k_y)## such that ## \mathcal{E} \le \mathcal{E}(k_x,k_y) \le \mathcal{E} + \Delta \mathcal{E}##. Then your density of states will be i.e. ##g(\mathcal{E}) = N(\mathcal{E})/\Delta \mathcal{E}##, where ##N(\mathcal{E})## is the number of data points are counted.